<template>
	<view>
		<image src="https://res.jiuzhang-cloud.com/jzy-oss/upload/image/dti-hospital/agencies/auditRefused.png"
			mode="scaleToFill" />
		<view class="txt_1">
			审核未通过
		</view>
		<view class="txt_2">
			您提交的信息，未通过审核！请修改后重新提交
		</view>
		<view class="txt_3">
			未通过原因：{{ refuseReason }}
		</view>
		<view class="submit">
			<button @click="gotoRouter('/pages-agencies/settled/settled')">去修改</button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			refuseReason: ''
		}
	},
	onShow() {
		this.getAgenciesState()
	},
	methods: {
		getAgenciesState() {
			this.$api.getAgenciesState().then(e => {
				const { code, result: { refuseReason } } = e
				if (code == 200) {
					this.refuseReason = refuseReason
				} else {
					uni.showToast({
						title: e.message,
						icon: 'none'
					});
				}
			})
		}
	}
}
</script>

<style lang="less">
@import './auditRefused.less';
</style>
